# Contributor: Erik Wisuri <ewisuri@gmail.com>
# Maintainer: Erik Wisuri <ewisuri@gmail.com>
pkgname=kstart
pkgver=4.2
pkgrel=0
pkgdesc="Port of kinit for automated refreshing of service kerberos tickets"
url="https://eyrie.org/~eagle/software/kstart"
arch="all"
license="custom"
makedepends="krb5-dev perl"
subpackages="$pkgname-doc"
source="https://archives.eyrie.org/software/kerberos/kstart-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="7ce9c1f964c0d469b4b8a5de88ae83186e99116959941c4e7f69c59165d0c22aac432ac26dd5fe54f7c2f725048bb55b787107aea8408e2fd6c9ad02dcb31552  kstart-4.2.tar.gz"
